]> dgit.raspbian.org Git - gnome-shell.git/commit
search: Do not use Cancellable.reset()
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 16 Feb 2026 20:58:25 +0000 (21:58 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 17 Feb 2026 14:00:14 +0000 (14:00 +0000)
commitcead829503083658e736af5964d1d8eb3c92a6bb
tree2d5e32dc2e82b581a1cefb1a0dce4459e0f2a8d6
parent37d5b68f3d3fd828e3eabeaa3d9c06376c8c69d6
search: Do not use Cancellable.reset()

Cancellable reset API is deprecated for long time and it's quite broken.
In fact if a search provider receives a cancelled event may end up
checking if the cancellable has been cancelled, but this may not be true
anymore after a reset.

Use instead new cancellable instances so that once one is used we can
consider the previous one completed and we can forget about it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4080>
js/ui/search.js